#ifndef _PADDLE_H_
#define _PADDLE_H_

#include "cocos2d.h"

USING_NS_CC;

typedef enum tagUitemState 
{
    kUitemStateGrabbed,
    kUitemStateUngrabbed
} UitemState; 

class Uitem : public CCSprite, public CCTargetedTouchDelegate
{

	UitemState        m_state;

public:
	Uitem(void);
	~Uitem(void);

	CCSprite* tooth;

	 CCRect rect();
    bool initWithTexture(CCTexture2D* aTexture);
    virtual void onEnter();
    virtual void onExit();
    bool containsTouchLocation(CCTouch* touch);
    virtual bool ccTouchBegan(CCTouch* touch, CCEvent* event);
    virtual void ccTouchMoved(CCTouch* touch, CCEvent* event);
    virtual void ccTouchEnded(CCTouch* touch, CCEvent* event);
    virtual CCObject* copyWithZone(CCZone *pZone);

    virtual void touchDelegateRetain();
    virtual void touchDelegateRelease();
	virtual void setTooth(CCSprite* tooth);

    static Uitem* uitemWithTexture(CCTexture2D* aTexture);
};

#endif

